package cn.demo.text.editor.strategy.menu;

import cn.demo.text.editor.constant.Str;

import javax.swing.*;
import java.awt.event.ActionListener;

public class SaveAsMenuItem extends JMenuItem {

    public SaveAsMenuItem(ActionListener actionListener) {
        super(Str.SAVE_AS, null);
        this.addActionListener(actionListener);
        this.setActionCommand(Str.SAVE_AS);
        this.setFont(new MenuFont());
    }
}